<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="/res/style/space/space.css" type="text/css" />
<style type="text/css">
#navigation {
	background: #74A8F5;
	border-top: 1px solid #ffffff;
	height: 25px;
	clear: both
}

/*普通样式*/
div.style1 {
	width: 20px;
	height: 20px;
	float: left;
	background-color: aqua;
	border: 1px solid gray;
	font-size: 15px;
	text-align: center;
	cursor: inherit;
}
/*高亮样式*/
div.style2 {
	width: 20px;
	height: 20px;
	float: left;
	background-color: gray;
	border: 1px solid black;
	font-size: 15px;
	text-align: center;
	font-weight: bold;
	cursor: inherit;
}
</style>

<script type="text/javascript" src="/res/script/space/spaceIndex.js">
	
</script>

</head>
<body onload="startChange();" bgcolor="gray">
	<!-- menu -->
	<jsp:include page="/page/space/spacehead.jsp"></jsp:include>
	<table border="1" align="center" width="840" height="680">

		<td valign="top">
			<h3 align="center">用户信息</h3> <c:choose>
				<c:when test="${user != null}">
				欢迎您：<a class="" href="personal.action?act=showSpace">${user.nickname}</a>
					<a href="action_logout.action">注销</a>
				</c:when>
				<c:otherwise>
					<a href="go_managerLogin.action">登录</a>
					<a href="go_register.action">注册</a>
				</c:otherwise>
			</c:choose>
			<hr>
			<div>
				<Iframe src="/page/space/left.html" width="260" height="600"
					scrolling="no" frameborder="0"></iframe>
			</div></td>

		<td valign="top">
			<form style="float: left;">
				<div>
					<img id="image" src="/res/image/space/1.jpg"
						onmouseover="stopChange(6);" onmouseout="startChange();"
						width="420">
				</div>
				<div id="buttons" onmouseout="startChange();">
					<div class="style2" onmouseover="change(0,true);">1</div>
					<div class="style1" onmouseover="change(1,true);">2</div>
					<div class="style1" onmouseover="change(2,true);">3</div>
					<div class="style1" onmouseover="change(3,true);">4</div>
					<div class="style1" onmouseover="change(4,true);">5</div>
					<div class="style1" onmouseover="change(5,true);">6</div>
				</div>
			</form> <br /> <span>----------------------------------------------------</span>
			<h3>订阅消息：</h3>
			 <c:choose>
				<c:when test="${emails != null}">
					<c:forEach items="${emails}" var="email" varStatus="status">
						<c:if test="${status.index < 5}">
						<ul>
							<li><a href="javascript:void(0)" target="_blank"
									onclick="detailEmail(this);" name="${email.id}">${email.subject}</a><br />
							</li>
						</ul>
						</c:if>
					</c:forEach>
				</c:when>
				<c:otherwise>
					<h3>没有相关的数据</h3>
				</c:otherwise>
			</c:choose>
		</td>

		<td valign="top" width="210">
			<div>
				<img src="/res/image/space/gonggao.jpg" width="225"></img>
			</div> <marquee scrollAmount=1 scrollDelay=1 direction=up width=224
				height=300>
				<span class="style1">&nbsp;&nbsp;&nbsp;&nbsp;对待生活多一份宽容和理解，我们的生命中就会多一些阳光，而少一些阴郁。想要让自己过的好，第一个要学会的就是放松自己的身心，只有从内到外彻底的放松和享受，才能让自己的生活变得更美妙。<br>
				</span><br>
			</marquee>
			<div>
				<h4>热爱读书:</h4>
				<img src="/res/image/space/read.jpg" width="225" />
			</div>
		</td>

	</table>
	<div align="center">
		<div>Copyright2013&copy;广东工业大学</div>
	</div>
</body>
</html>
